from abc import abstractmethod
from loguru import logger


# 对象池抽象类
class Pool:

    @abstractmethod
    def capacity(self):
        logger.info(f"{type(self).__name__}类 准备获取当前容量")
        pass

    @abstractmethod
    def find(self, name):
        logger.info(f"{type(self).__name__}类 准备获取某个对象 => {name}")
        pass
